package com.ruoyi.ams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ams.domain.AmsAssetInventory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 盘点单Mapper接口
 * 
 * @author yfkj
 * @date 2022-05-16
 */@Mapper
public interface AmsAssetInventoryMapper extends BaseMapper<AmsAssetInventory>
{
    /**
     * 查询盘点单
     * 
     * @param inventoryId 盘点单主键
     * @return 盘点单
     */
    public AmsAssetInventory selectAmsAssetInventoryByInventoryId(Long inventoryId);

    /**
     * 查询盘点单列表
     * 
     * @param amsAssetInventory 盘点单
     * @return 盘点单集合
     */
    public List<AmsAssetInventory> selectAmsAssetInventoryList(AmsAssetInventory amsAssetInventory);

    /**
     * 新增盘点单
     * 
     * @param amsAssetInventory 盘点单
     * @return 结果
     */
    public int insertAmsAssetInventory(AmsAssetInventory amsAssetInventory);

    /**
     * 修改盘点单
     * 
     * @param amsAssetInventory 盘点单
     * @return 结果
     */
    public int updateAmsAssetInventory(AmsAssetInventory amsAssetInventory);

    /**
     * 删除盘点单
     * 
     * @param inventoryId 盘点单主键
     * @return 结果
     */
    public int deleteAmsAssetInventoryByInventoryId(Long inventoryId);

    /**
     * 批量删除盘点单
     * 
     * @param inventoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAmsAssetInventoryByInventoryIds(Long[] inventoryIds);
}
